<?php
//判断文件是否能写
var_dump(is_writeable('1.php'));

//是否可读
var_dump(is_readable('1.php'));

//获取文件大小
var_dump(filesize('1.php'));